package com.lanhai.ads.controller;

import com.lanhai.ads.model.AgvTransferLog;
import com.lanhai.ads.service.AgvLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@Api(tags="车辆对接记录查询接口")
@Slf4j
@RestController
public class AgvLogController {
//    @GetMapping
//    public String index(){
//        return "FnIgvStatistis application is running.";
//    }

    @Autowired
    AgvLogService agvLogService;
    @ApiOperation("查询对接记录")
    @PostMapping(value = "/transferlog/list", produces = MediaType.APPLICATION_JSON_VALUE)
    public List<AgvTransferLog> listTransferLog(@RequestBody AgvTransferLog agvTransferLog){
        log.info(agvTransferLog.toString());
        return agvLogService.listTransferLog(agvTransferLog);
    }

}
